package com.cn.xiaonuo.slbfinances.slborders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.slborders.entity.CommonOrder;
import com.cn.xiaonuo.slbfinances.slborders.param.CommonOrderParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface CmRoyaltyMapper  extends BaseMapper<String>{
    //03.卖家结款列表
    public List<Map<String,Object>> shopPaymentList(CommonOrder commonOrder);

    //04.卖家批量结款
    public int shopPayment(
            @Param("recordUserId")  Integer recordUserId,
            @Param("paymentIdList")  String[] paymentIdList
    );

    /**
     * 服务中心加加盟店结算
     * @param commonOrder
     * @return
     */
    public List<CommonOrder> newShopPaymentList(CommonOrder commonOrder);

    /**
     * 服务中心加加盟店结算
     * @param commonOrder
     * @return
     */
    public List<CommonOrder> fwzxShopPaymentList(CommonOrder commonOrder);

    /**
     * 服务中心加加盟店结算
     * @param commonOrder
     * @return
     */
    public List<CommonOrder> inOutShopPaymentList(CommonOrder commonOrder);

    /**
     * 加盟店结算新版导出
     * @param commonOrder
     * @return
     */
    List<CommonOrder> shopPaymentExcel(CommonOrder commonOrder);
}
